package com.sfpay.coreplatform.order.service.composite;

import com.sfpay.coreplatform.order.service.composite.common.PayContext;
import com.sfpay.coreplatform.order.service.exception.OrderServiceException;
import com.sfpay.coreplatform.order.valueobject.dto.PayRequest;
import com.sfpay.coreplatform.order.valueobject.dto.Response;

public interface IHandler {
	
	/**
	 * 处理业务
	 * @param request
	 * @param payContext
	 * @return
	 */
	public Response Handler(PayRequest request,PayContext payContext)throws OrderServiceException;
	
	/**
	 * 返回处理名称
	 * @return
	 */
	public String getHandlerName();

}
